package com.lwq.imserver.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2022/1/17 17:11
 */
@Data
@NoArgsConstructor
public class SendBody extends TransferModel implements Serializable {

    private static final long serialVersionUID = 1L;

    private String key;

    private long timestamp;

    public SendBody(String content, String type) {
        this.setContent(content);
        this.setType(type);
    }

    public SendBody(String type){
        this.setType(type);
    }

    public SendBody(String content, String type,String fromName){
        this.setContent(content);
        this.setType(type);
        this.setFromName(fromName);
    }


//    private final HashMap<String, String> data = new HashMap<>();
//
//    public void putAll(Map<String, String> map) {
//        data.putAll(map);
//    }

}
